<template>
	<view class="coa">
		{{txt}}
		<myCom></myCom>
		<map style="width: 100%; height: 300px;" :latitude="latitude" :longitude="longitude" :markers="covers">
		                </map>
	</view>
</template>

<script>
	import myCom from '../../components/myCom.vue'
	export default {
		data(){
			return {
				txt:"",
				id:0, // 使用 marker点击事件 需要填写id
            title: 'map',
            latitude: 39.909,
            longitude: 116.39742,
            covers: [{
                latitude: 39.909,
                longitude: 116.39742,
                iconPath: '../../static/location.png'
            }, {
                latitude: 39.80,
                longitude: 116.39,
                iconPath: '../../static/location.png'
            }]}
		},
		mounted() {
			this.txt='My'+uni.getStorageSync('data')
		},
		components:{
			myCom
		}
	}
</script>

<style>
</style>
